#include "roadmap.h"


void RoadMap::setCheckp(){
    ncheckps = 894;

    checkpoints[0].x=670;    checkpoints[0].z=100;   checkpoints[1].x=670;   checkpoints[1].z=104;   
    checkpoints[2].x=670;	checkpoints[2].z=108;	checkpoints[3].x=670;	checkpoints[3].z=112;	
    checkpoints[4].x=670;	checkpoints[4].z=117;	checkpoints[5].x=670;	checkpoints[5].z=120;	
    checkpoints[6].x=670;	checkpoints[6].z=124;	checkpoints[7].x=670;	checkpoints[7].z=129;	
    checkpoints[8].x=670;	checkpoints[8].z=133;	checkpoints[9].x=670;	checkpoints[9].z=136;	
    checkpoints[10].x=670;	checkpoints[10].z=140;	checkpoints[11].x=670;	checkpoints[11].z=145;	
    checkpoints[12].x=670;	checkpoints[12].z=148;	checkpoints[13].x=670;	checkpoints[13].z=152;	
    checkpoints[14].x=670;	checkpoints[14].z=156;	checkpoints[15].x=670;	checkpoints[15].z=160;	
    checkpoints[16].x=670;	checkpoints[16].z=164;	checkpoints[17].x=670;	checkpoints[17].z=169;	
    checkpoints[18].x=670;	checkpoints[18].z=172;	checkpoints[19].x=670;	checkpoints[19].z=176;	
    checkpoints[20].x=670;	checkpoints[20].z=180;	checkpoints[21].x=670;	checkpoints[21].z=184;	
    checkpoints[22].x=670;	checkpoints[22].z=188;	checkpoints[23].x=670;	checkpoints[23].z=193;	
    checkpoints[24].x=670;	checkpoints[24].z=196;	checkpoints[25].x=670;	checkpoints[25].z=200;	
    checkpoints[26].x=670;	checkpoints[26].z=205;	checkpoints[27].x=670;	checkpoints[27].z=209;	
    checkpoints[28].x=670;	checkpoints[28].z=212;	checkpoints[29].x=670;	checkpoints[29].z=216;	
    checkpoints[30].x=670;	checkpoints[30].z=220;	checkpoints[31].x=670;	checkpoints[31].z=225;	
    checkpoints[32].x=670;	checkpoints[32].z=229;	checkpoints[33].x=670;	checkpoints[33].z=232;	
    checkpoints[34].x=670;	checkpoints[34].z=237;	checkpoints[35].x=670;	checkpoints[35].z=241;	
    checkpoints[36].x=670;	checkpoints[36].z=244;	checkpoints[37].x=670;	checkpoints[37].z=248;	
    checkpoints[38].x=670;	checkpoints[38].z=253;	checkpoints[39].x=670;	checkpoints[39].z=256;	
    checkpoints[40].x=670;	checkpoints[40].z=260;	checkpoints[41].x=670;	checkpoints[41].z=264;	
    checkpoints[42].x=670;	checkpoints[42].z=269;	checkpoints[43].x=670;	checkpoints[43].z=273;	
    checkpoints[44].x=670;	checkpoints[44].z=276;	checkpoints[45].x=670;	checkpoints[45].z=280;	
    checkpoints[46].x=670;	checkpoints[46].z=284;	checkpoints[47].x=669;	checkpoints[47].z=289;	
    checkpoints[48].x=668;	checkpoints[48].z=292;	checkpoints[49].x=668;	checkpoints[49].z=296;	
    checkpoints[50].x=666;	checkpoints[50].z=300;	checkpoints[51].x=665;	checkpoints[51].z=305;	
    checkpoints[52].x=663;	checkpoints[52].z=308;	checkpoints[53].x=662;	checkpoints[53].z=312;	
    checkpoints[54].x=659;	checkpoints[54].z=316;	checkpoints[55].x=657;	checkpoints[55].z=320;	
    checkpoints[56].x=654;	checkpoints[56].z=324;	checkpoints[57].x=650;	checkpoints[57].z=328;	
    checkpoints[58].x=646;	checkpoints[58].z=332;	checkpoints[59].x=641;	checkpoints[59].z=336;	
    checkpoints[60].x=636;	checkpoints[60].z=339;	checkpoints[61].x=630;	checkpoints[61].z=342;	
    checkpoints[62].x=626;	checkpoints[62].z=344;	checkpoints[63].x=621;	checkpoints[63].z=347;	
    checkpoints[64].x=616;	checkpoints[64].z=349;	checkpoints[65].x=611;	checkpoints[65].z=352;	
    checkpoints[66].x=606;	checkpoints[66].z=354;	checkpoints[67].x=601;	checkpoints[67].z=357;	
    checkpoints[68].x=596;	checkpoints[68].z=359;	checkpoints[69].x=591;	checkpoints[69].z=362;	
    checkpoints[70].x=586;	checkpoints[70].z=365;	checkpoints[71].x=581;	checkpoints[71].z=367;	
    checkpoints[72].x=576;	checkpoints[72].z=370;	checkpoints[73].x=571;	checkpoints[73].z=372;	
    checkpoints[74].x=566;	checkpoints[74].z=375;	checkpoints[75].x=561;	checkpoints[75].z=377;	
    checkpoints[76].x=556;	checkpoints[76].z=380;	checkpoints[77].x=551;	checkpoints[77].z=382;	
    checkpoints[78].x=546;	checkpoints[78].z=385;	checkpoints[79].x=541;	checkpoints[79].z=388;	
    checkpoints[80].x=536;	checkpoints[80].z=392;	checkpoints[81].x=532;	checkpoints[81].z=395;	
    checkpoints[82].x=529;	checkpoints[82].z=399;	checkpoints[83].x=526;	checkpoints[83].z=403;	
    checkpoints[84].x=523;	checkpoints[84].z=407;	checkpoints[85].x=521;	checkpoints[85].z=411;	
    checkpoints[86].x=520;	checkpoints[86].z=416;	checkpoints[87].x=518;	checkpoints[87].z=419;	
    checkpoints[88].x=517;	checkpoints[88].z=424;	checkpoints[89].x=517;	checkpoints[89].z=427;	
    checkpoints[90].x=516;	checkpoints[90].z=431;	checkpoints[91].x=516;	checkpoints[91].z=436;	
    checkpoints[92].x=515;	checkpoints[92].z=439;	checkpoints[93].x=515;	checkpoints[93].z=443;	
    checkpoints[94].x=514;	checkpoints[94].z=448;	checkpoints[95].x=514;	checkpoints[95].z=451;	
    checkpoints[96].x=514;	checkpoints[96].z=456;	checkpoints[97].x=513;	checkpoints[97].z=459;	
    checkpoints[98].x=513;	checkpoints[98].z=464;	checkpoints[99].x=513;	checkpoints[99].z=467;	
    checkpoints[100].x=513;	checkpoints[100].z=471;	checkpoints[101].x=514;	checkpoints[101].z=476;	
    checkpoints[102].x=515;	checkpoints[102].z=479;	checkpoints[103].x=516;	checkpoints[103].z=483;	
    checkpoints[104].x=517;	checkpoints[104].z=487;	checkpoints[105].x=518;	checkpoints[105].z=491;	
    checkpoints[106].x=520;	checkpoints[106].z=495;	checkpoints[107].x=521;	checkpoints[107].z=499;	
    checkpoints[108].x=523;	checkpoints[108].z=503;	checkpoints[109].x=525;	checkpoints[109].z=507;	
    checkpoints[110].x=527;	checkpoints[110].z=511;	checkpoints[111].x=530;	checkpoints[111].z=515;	
    checkpoints[112].x=533;	checkpoints[112].z=520;	checkpoints[113].x=537;	checkpoints[113].z=523;	
    checkpoints[114].x=540;	checkpoints[114].z=527;	checkpoints[115].x=544;	checkpoints[115].z=530;	
    checkpoints[116].x=548;	checkpoints[116].z=533;	checkpoints[117].x=553;	checkpoints[117].z=535;	
    checkpoints[118].x=557;	checkpoints[118].z=537;	checkpoints[119].x=560;	checkpoints[119].z=539;	
    checkpoints[120].x=564;	checkpoints[120].z=540;	checkpoints[121].x=568;	checkpoints[121].z=541;	
    checkpoints[122].x=572;	checkpoints[122].z=542;	checkpoints[123].x=576;	checkpoints[123].z=542;	
    checkpoints[124].x=581;	checkpoints[124].z=542;	checkpoints[125].x=584;	checkpoints[125].z=542;	
    checkpoints[126].x=588;	checkpoints[126].z=542;	checkpoints[127].x=592;	checkpoints[127].z=541;	
    checkpoints[128].x=596;	checkpoints[128].z=540;	checkpoints[129].x=600;	checkpoints[129].z=539;	
    checkpoints[130].x=605;	checkpoints[130].z=538;	checkpoints[131].x=608;	checkpoints[131].z=537;	
    checkpoints[132].x=612;	checkpoints[132].z=535;	checkpoints[133].x=617;	checkpoints[133].z=534;	
    checkpoints[134].x=620;	checkpoints[134].z=533;	checkpoints[135].x=624;	checkpoints[135].z=531;	
    checkpoints[136].x=628;	checkpoints[136].z=530;	checkpoints[137].x=633;	checkpoints[137].z=528;	
    checkpoints[138].x=637;	checkpoints[138].z=527;	checkpoints[139].x=640;	checkpoints[139].z=526;	
    checkpoints[140].x=644;	checkpoints[140].z=524;	checkpoints[141].x=648;	checkpoints[141].z=522;	
    checkpoints[142].x=652;	checkpoints[142].z=520;	checkpoints[143].x=656;	checkpoints[143].z=518;	
    checkpoints[144].x=661;	checkpoints[144].z=515;	checkpoints[145].x=664;	checkpoints[145].z=514;	
    checkpoints[146].x=668;	checkpoints[146].z=511;	checkpoints[147].x=672;	checkpoints[147].z=509;	
    checkpoints[148].x=677;	checkpoints[148].z=507;	checkpoints[149].x=680;	checkpoints[149].z=505;	
    checkpoints[150].x=684;	checkpoints[150].z=503;	checkpoints[151].x=688;	checkpoints[151].z=501;	
    checkpoints[152].x=692;	checkpoints[152].z=499;	checkpoints[153].x=696;	checkpoints[153].z=497;	
    checkpoints[154].x=700;	checkpoints[154].z=495;	checkpoints[155].x=704;	checkpoints[155].z=493;	
    checkpoints[156].x=708;	checkpoints[156].z=491;	checkpoints[157].x=712;	checkpoints[157].z=490;	
    checkpoints[158].x=716;	checkpoints[158].z=488;	checkpoints[159].x=720;	checkpoints[159].z=487;	
    checkpoints[160].x=725;	checkpoints[160].z=485;	checkpoints[161].x=729;	checkpoints[161].z=484;	
    checkpoints[162].x=732;	checkpoints[162].z=483;	checkpoints[163].x=736;	checkpoints[163].z=481;	
    checkpoints[164].x=740;	checkpoints[164].z=480;	checkpoints[165].x=745;	checkpoints[165].z=478;	
    checkpoints[166].x=748;	checkpoints[166].z=477;	checkpoints[167].x=752;	checkpoints[167].z=476;	
    checkpoints[168].x=756;	checkpoints[168].z=474;	checkpoints[169].x=760;	checkpoints[169].z=473;	
    checkpoints[170].x=764;	checkpoints[170].z=472;	checkpoints[171].x=768;	checkpoints[171].z=470;	
    checkpoints[172].x=772;	checkpoints[172].z=470;	checkpoints[173].x=776;	checkpoints[173].z=469;	
    checkpoints[174].x=780;	checkpoints[174].z=469;	checkpoints[175].x=784;	checkpoints[175].z=468;	
    checkpoints[176].x=789;	checkpoints[176].z=468;	checkpoints[177].x=792;	checkpoints[177].z=468;	
    checkpoints[178].x=796;	checkpoints[178].z=467;	checkpoints[179].x=800;	checkpoints[179].z=467;	
    checkpoints[180].x=804;	checkpoints[180].z=467;	checkpoints[181].x=808;	checkpoints[181].z=468;	
    checkpoints[182].x=812;	checkpoints[182].z=468;	checkpoints[183].x=816;	checkpoints[183].z=469;	
    checkpoints[184].x=820;	checkpoints[184].z=470;	checkpoints[185].x=824;	checkpoints[185].z=472;	
    checkpoints[186].x=828;	checkpoints[186].z=474;	checkpoints[187].x=832;	checkpoints[187].z=476;	
    checkpoints[188].x=836;	checkpoints[188].z=478;	checkpoints[189].x=840;	checkpoints[189].z=481;	
    checkpoints[190].x=844;	checkpoints[190].z=485;	checkpoints[191].x=847;	checkpoints[191].z=488;	
    checkpoints[192].x=850;	checkpoints[192].z=492;	checkpoints[193].x=853;	checkpoints[193].z=496;	
    checkpoints[194].x=855;	checkpoints[194].z=500;	checkpoints[195].x=857;	checkpoints[195].z=504;	
    checkpoints[196].x=858;	checkpoints[196].z=508;	checkpoints[197].x=860;	checkpoints[197].z=512;	
    checkpoints[198].x=861;	checkpoints[198].z=516;	checkpoints[199].x=863;	checkpoints[199].z=520;	
    checkpoints[200].x=864;	checkpoints[200].z=524;	checkpoints[201].x=865;	checkpoints[201].z=529;	
    checkpoints[202].x=865;	checkpoints[202].z=532;	checkpoints[203].x=865;	checkpoints[203].z=537;	
    checkpoints[204].x=865;	checkpoints[204].z=541;	checkpoints[205].x=865;	checkpoints[205].z=544;	
    checkpoints[206].x=865;	checkpoints[206].z=549;	checkpoints[207].x=864;	checkpoints[207].z=552;	
    checkpoints[208].x=863;	checkpoints[208].z=556;	checkpoints[209].x=862;	checkpoints[209].z=560;	
    checkpoints[210].x=862;	checkpoints[210].z=565;	checkpoints[211].x=861;	checkpoints[211].z=568;	
    checkpoints[212].x=859;	checkpoints[212].z=572;	checkpoints[213].x=858;	checkpoints[213].z=576;	
    checkpoints[214].x=856;	checkpoints[214].z=580;	checkpoints[215].x=854;	checkpoints[215].z=584;	
    checkpoints[216].x=851;	checkpoints[216].z=589;	checkpoints[217].x=848;	checkpoints[217].z=592;	
    checkpoints[218].x=845;	checkpoints[218].z=596;	checkpoints[219].x=841;	checkpoints[219].z=600;	
    checkpoints[220].x=836;	checkpoints[220].z=604;	checkpoints[221].x=832;	checkpoints[221].z=608;	
    checkpoints[222].x=827;	checkpoints[222].z=610;	checkpoints[223].x=822;	checkpoints[223].z=613;	
    checkpoints[224].x=817;	checkpoints[224].z=615;	checkpoints[225].x=812;	checkpoints[225].z=616;	
    checkpoints[226].x=806;	checkpoints[226].z=618;	checkpoints[227].x=802;	checkpoints[227].z=619;	
    checkpoints[228].x=797;	checkpoints[228].z=620;	checkpoints[229].x=791;	checkpoints[229].z=621;	
    checkpoints[230].x=787;	checkpoints[230].z=622;	checkpoints[231].x=782;	checkpoints[231].z=623;	
    checkpoints[232].x=777;	checkpoints[232].z=624;	checkpoints[233].x=772;	checkpoints[233].z=626;	
    checkpoints[234].x=767;	checkpoints[234].z=627;	checkpoints[235].x=762;	checkpoints[235].z=628;	
    checkpoints[236].x=757;	checkpoints[236].z=630;	checkpoints[237].x=752;	checkpoints[237].z=632;	
    checkpoints[238].x=747;	checkpoints[238].z=634;	checkpoints[239].x=742;	checkpoints[239].z=637;	
    checkpoints[240].x=737;	checkpoints[240].z=639;	checkpoints[241].x=732;	checkpoints[241].z=642;	
    checkpoints[242].x=727;	checkpoints[242].z=644;	checkpoints[243].x=722;	checkpoints[243].z=648;	
    checkpoints[244].x=717;	checkpoints[244].z=651;	checkpoints[245].x=713;	checkpoints[245].z=655;	
    checkpoints[246].x=708;	checkpoints[246].z=659;	checkpoints[247].x=704;	checkpoints[247].z=663;	
    checkpoints[248].x=699;	checkpoints[248].z=667;	checkpoints[249].x=695;	checkpoints[249].z=671;	
    checkpoints[250].x=692;	checkpoints[250].z=675;	checkpoints[251].x=689;	checkpoints[251].z=679;	
    checkpoints[252].x=686;	checkpoints[252].z=683;	checkpoints[253].x=683;	checkpoints[253].z=687;	
    checkpoints[254].x=680;	checkpoints[254].z=691;	checkpoints[255].x=677;	checkpoints[255].z=695;	
    checkpoints[256].x=674;	checkpoints[256].z=699;	checkpoints[257].x=671;	checkpoints[257].z=703;	
    checkpoints[258].x=668;	checkpoints[258].z=707;	checkpoints[259].x=665;	checkpoints[259].z=711;	
    checkpoints[260].x=662;	checkpoints[260].z=715;	checkpoints[261].x=659;	checkpoints[261].z=719;	
    checkpoints[262].x=656;	checkpoints[262].z=723;	checkpoints[263].x=653;	checkpoints[263].z=727;	
    checkpoints[264].x=650;	checkpoints[264].z=731;	checkpoints[265].x=647;	checkpoints[265].z=735;	
    checkpoints[266].x=644;	checkpoints[266].z=739;	checkpoints[267].x=641;	checkpoints[267].z=743;	
    checkpoints[268].x=638;	checkpoints[268].z=747;	checkpoints[269].x=635;	checkpoints[269].z=751;	
    checkpoints[270].x=632;	checkpoints[270].z=755;	checkpoints[271].x=629;	checkpoints[271].z=759;	
    checkpoints[272].x=626;	checkpoints[272].z=763;	checkpoints[273].x=623;	checkpoints[273].z=767;	
    checkpoints[274].x=620;	checkpoints[274].z=771;	checkpoints[275].x=617;	checkpoints[275].z=775;	
    checkpoints[276].x=614;	checkpoints[276].z=780;	checkpoints[277].x=612;	checkpoints[277].z=783;	
    checkpoints[278].x=609;	checkpoints[278].z=787;	checkpoints[279].x=605;	checkpoints[279].z=791;	
    checkpoints[280].x=603;	checkpoints[280].z=795;	checkpoints[281].x=600;	checkpoints[281].z=799;	
    checkpoints[282].x=596;	checkpoints[282].z=803;	checkpoints[283].x=594;	checkpoints[283].z=807;	
    checkpoints[284].x=591;	checkpoints[284].z=811;	checkpoints[285].x=588;	checkpoints[285].z=815;	
    checkpoints[286].x=585;	checkpoints[286].z=819;	checkpoints[287].x=582;	checkpoints[287].z=823;	
    checkpoints[288].x=579;	checkpoints[288].z=827;	checkpoints[289].x=576;	checkpoints[289].z=831;	
    checkpoints[290].x=573;	checkpoints[290].z=835;	checkpoints[291].x=570;	checkpoints[291].z=839;	
    checkpoints[292].x=567;	checkpoints[292].z=843;	checkpoints[293].x=564;	checkpoints[293].z=847;	
    checkpoints[294].x=561;	checkpoints[294].z=851;	checkpoints[295].x=558;	checkpoints[295].z=855;	
    checkpoints[296].x=555;	checkpoints[296].z=859;	checkpoints[297].x=552;	checkpoints[297].z=863;	
    checkpoints[298].x=549;	checkpoints[298].z=867;	checkpoints[299].x=546;	checkpoints[299].z=871;	
    checkpoints[300].x=543;	checkpoints[300].z=875;	checkpoints[301].x=540;	checkpoints[301].z=879;	
    checkpoints[302].x=537;	checkpoints[302].z=883;	checkpoints[303].x=534;	checkpoints[303].z=887;	
    checkpoints[304].x=531;	checkpoints[304].z=891;	checkpoints[305].x=528;	checkpoints[305].z=895;	
    checkpoints[306].x=525;	checkpoints[306].z=899;	checkpoints[307].x=522;	checkpoints[307].z=903;	
    checkpoints[308].x=519;	checkpoints[308].z=907;	checkpoints[309].x=516;	checkpoints[309].z=911;	
    checkpoints[310].x=513;	checkpoints[310].z=915;	checkpoints[311].x=511;	checkpoints[311].z=919;	
    checkpoints[312].x=508;	checkpoints[312].z=923;	checkpoints[313].x=505;	checkpoints[313].z=927;	
    checkpoints[314].x=502;	checkpoints[314].z=931;	checkpoints[315].x=499;	checkpoints[315].z=935;	
    checkpoints[316].x=496;	checkpoints[316].z=939;	checkpoints[317].x=494;	checkpoints[317].z=943;	
    checkpoints[318].x=493;	checkpoints[318].z=947;	checkpoints[319].x=492;	checkpoints[319].z=951;	
    checkpoints[320].x=491;	checkpoints[320].z=956;	checkpoints[321].x=490;	checkpoints[321].z=959;	
    checkpoints[322].x=490;	checkpoints[322].z=963;	checkpoints[323].x=489;	checkpoints[323].z=968;	
    checkpoints[324].x=489;	checkpoints[324].z=971;	checkpoints[325].x=488;	checkpoints[325].z=976;	
    checkpoints[326].x=488;	checkpoints[326].z=979;	checkpoints[327].x=487;	checkpoints[327].z=983;	
    checkpoints[328].x=487;	checkpoints[328].z=987;	checkpoints[329].x=487;	checkpoints[329].z=992;	
    checkpoints[330].x=487;	checkpoints[330].z=995;	checkpoints[331].x=487;	checkpoints[331].z=1000;	
    checkpoints[332].x=488;	checkpoints[332].z=1004;	checkpoints[333].x=488;	checkpoints[333].z=1007;	
    checkpoints[334].x=488;	checkpoints[334].z=1011;	checkpoints[335].x=488;	checkpoints[335].z=1015;	
    checkpoints[336].x=488;	checkpoints[336].z=1019;	checkpoints[337].x=489;	checkpoints[337].z=1024;	
    checkpoints[338].x=489;	checkpoints[338].z=1027;	checkpoints[339].x=489;	checkpoints[339].z=1031;	
    checkpoints[340].x=489;	checkpoints[340].z=1035;	checkpoints[341].x=489;	checkpoints[341].z=1039;	
    checkpoints[342].x=490;	checkpoints[342].z=1043;	checkpoints[343].x=490;	checkpoints[343].z=1048;	
    checkpoints[344].x=490;	checkpoints[344].z=1051;	checkpoints[345].x=490;	checkpoints[345].z=1055;	
    checkpoints[346].x=491;	checkpoints[346].z=1059;	checkpoints[347].x=491;	checkpoints[347].z=1063;	
    checkpoints[348].x=491;	checkpoints[348].z=1067;	checkpoints[349].x=491;	checkpoints[349].z=1071;	
    checkpoints[350].x=491;	checkpoints[350].z=1076;	checkpoints[351].x=492;	checkpoints[351].z=1079;	
    checkpoints[352].x=492;	checkpoints[352].z=1084;	checkpoints[353].x=492;	checkpoints[353].z=1087;	
    checkpoints[354].x=492;	checkpoints[354].z=1092;	checkpoints[355].x=492;	checkpoints[355].z=1096;	
    checkpoints[356].x=492;	checkpoints[356].z=1099;	checkpoints[357].x=492;	checkpoints[357].z=1103;	
    checkpoints[358].x=491;	checkpoints[358].z=1107;	checkpoints[359].x=491;	checkpoints[359].z=1112;	
    checkpoints[360].x=491;	checkpoints[360].z=1115;	checkpoints[361].x=490;	checkpoints[361].z=1119;	
    checkpoints[362].x=490;	checkpoints[362].z=1124;	checkpoints[363].x=490;	checkpoints[363].z=1127;	
    checkpoints[364].x=489;	checkpoints[364].z=1131;	checkpoints[365].x=489;	checkpoints[365].z=1135;	
    checkpoints[366].x=488;	checkpoints[366].z=1139;	checkpoints[367].x=488;	checkpoints[367].z=1143;	
    checkpoints[368].x=488;	checkpoints[368].z=1147;	checkpoints[369].x=487;	checkpoints[369].z=1151;	
    checkpoints[370].x=487;	checkpoints[370].z=1155;	checkpoints[371].x=487;	checkpoints[371].z=1159;	
    checkpoints[372].x=486;	checkpoints[372].z=1163;	checkpoints[373].x=486;	checkpoints[373].z=1167;	
    checkpoints[374].x=486;	checkpoints[374].z=1172;	checkpoints[375].x=486;	checkpoints[375].z=1175;	
    checkpoints[376].x=487;	checkpoints[376].z=1180;	checkpoints[377].x=487;	checkpoints[377].z=1184;	
    checkpoints[378].x=488;	checkpoints[378].z=1187;	checkpoints[379].x=489;	checkpoints[379].z=1191;	
    checkpoints[380].x=489;	checkpoints[380].z=1196;	checkpoints[381].x=490;	checkpoints[381].z=1199;	
    checkpoints[382].x=490;	checkpoints[382].z=1204;	checkpoints[383].x=491;	checkpoints[383].z=1207;	
    checkpoints[384].x=492;	checkpoints[384].z=1212;	checkpoints[385].x=492;	checkpoints[385].z=1215;	
    checkpoints[386].x=493;	checkpoints[386].z=1220;	checkpoints[387].x=494;	checkpoints[387].z=1223;	
    checkpoints[388].x=495;	checkpoints[388].z=1228;	checkpoints[389].x=497;	checkpoints[389].z=1231;	
    checkpoints[390].x=499;	checkpoints[390].z=1235;	checkpoints[391].x=501;	checkpoints[391].z=1239;	
    checkpoints[392].x=504;	checkpoints[392].z=1243;	checkpoints[393].x=507;	checkpoints[393].z=1247;	
    checkpoints[394].x=510;	checkpoints[394].z=1251;	checkpoints[395].x=514;	checkpoints[395].z=1254;	
    checkpoints[396].x=517;	checkpoints[396].z=1257;	checkpoints[397].x=521;	checkpoints[397].z=1261;	
    checkpoints[398].x=525;	checkpoints[398].z=1264;	checkpoints[399].x=530;	checkpoints[399].z=1268;	
    checkpoints[400].x=533;	checkpoints[400].z=1272;	checkpoints[401].x=537;	checkpoints[401].z=1275;	
    checkpoints[402].x=541;	checkpoints[402].z=1279;	checkpoints[403].x=545;	checkpoints[403].z=1283;	
    checkpoints[404].x=548;	checkpoints[404].z=1287;	checkpoints[405].x=550;	checkpoints[405].z=1291;	
    checkpoints[406].x=552;	checkpoints[406].z=1295;	checkpoints[407].x=554;	checkpoints[407].z=1299;	
    checkpoints[408].x=556;	checkpoints[408].z=1303;	checkpoints[409].x=557;	checkpoints[409].z=1307;	
    checkpoints[410].x=559;	checkpoints[410].z=1311;	checkpoints[411].x=560;	checkpoints[411].z=1315;	
    checkpoints[412].x=562;	checkpoints[412].z=1319;	checkpoints[413].x=563;	checkpoints[413].z=1323;	
    checkpoints[414].x=565;	checkpoints[414].z=1327;	checkpoints[415].x=566;	checkpoints[415].z=1331;	
    checkpoints[416].x=566;	checkpoints[416].z=1335;	checkpoints[417].x=567;	checkpoints[417].z=1339;	
    checkpoints[418].x=567;	checkpoints[418].z=1343;	checkpoints[419].x=566;	checkpoints[419].z=1347;	
    checkpoints[420].x=566;	checkpoints[420].z=1351;	checkpoints[421].x=565;	checkpoints[421].z=1356;	
    checkpoints[422].x=564;	checkpoints[422].z=1359;	checkpoints[423].x=563;	checkpoints[423].z=1363;	
    checkpoints[424].x=562;	checkpoints[424].z=1368;	checkpoints[425].x=561;	checkpoints[425].z=1371;	
    checkpoints[426].x=560;	checkpoints[426].z=1375;	checkpoints[427].x=559;	checkpoints[427].z=1379;	
    checkpoints[428].x=558;	checkpoints[428].z=1383;	checkpoints[429].x=557;	checkpoints[429].z=1387;	
    checkpoints[430].x=556;	checkpoints[430].z=1391;	checkpoints[431].x=555;	checkpoints[431].z=1395;	
    checkpoints[432].x=554;	checkpoints[432].z=1399;	checkpoints[433].x=553;	checkpoints[433].z=1403;	
    checkpoints[434].x=552;	checkpoints[434].z=1408;	checkpoints[435].x=551;	checkpoints[435].z=1411;	
    checkpoints[436].x=550;	checkpoints[436].z=1415;	checkpoints[437].x=550;	checkpoints[437].z=1419;	
    checkpoints[438].x=550;	checkpoints[438].z=1423;	checkpoints[439].x=550;	checkpoints[439].z=1427;	
    checkpoints[440].x=551;	checkpoints[440].z=1431;	checkpoints[441].x=552;	checkpoints[441].z=1435;	
    checkpoints[442].x=552;	checkpoints[442].z=1439;	checkpoints[443].x=553;	checkpoints[443].z=1443;	
    checkpoints[444].x=554;	checkpoints[444].z=1447;	checkpoints[445].x=554;	checkpoints[445].z=1451;	
    checkpoints[446].x=555;	checkpoints[446].z=1455;	checkpoints[447].x=557;	checkpoints[447].z=1459;	
    checkpoints[448].x=558;	checkpoints[448].z=1463;	checkpoints[449].x=561;	checkpoints[449].z=1467;	
    checkpoints[450].x=563;	checkpoints[450].z=1471;	checkpoints[451].x=567;	checkpoints[451].z=1475;	
    checkpoints[452].x=570;	checkpoints[452].z=1478;	checkpoints[453].x=574;	checkpoints[453].z=1482;	
    checkpoints[454].x=577;	checkpoints[454].z=1485;	checkpoints[455].x=581;	checkpoints[455].z=1489;	
    checkpoints[456].x=584;	checkpoints[456].z=1492;	checkpoints[457].x=588;	checkpoints[457].z=1496;	
    checkpoints[458].x=592;	checkpoints[458].z=1500;	checkpoints[459].x=596;	checkpoints[459].z=1503;	
    checkpoints[460].x=600;	checkpoints[460].z=1506;	checkpoints[461].x=604;	checkpoints[461].z=1508;	
    checkpoints[462].x=608;	checkpoints[462].z=1510;	checkpoints[463].x=612;	checkpoints[463].z=1512;	
    checkpoints[464].x=616;	checkpoints[464].z=1513;	checkpoints[465].x=620;	checkpoints[465].z=1514;	
    checkpoints[466].x=625;	checkpoints[466].z=1515;	checkpoints[467].x=628;	checkpoints[467].z=1516;	
    checkpoints[468].x=632;	checkpoints[468].z=1516;	checkpoints[469].x=636;	checkpoints[469].z=1517;	
    checkpoints[470].x=640;	checkpoints[470].z=1518;	checkpoints[471].x=644;	checkpoints[471].z=1519;	
    checkpoints[472].x=648;	checkpoints[472].z=1520;	checkpoints[473].x=652;	checkpoints[473].z=1521;	
    checkpoints[474].x=657;	checkpoints[474].z=1521;	checkpoints[475].x=660;	checkpoints[475].z=1521;	
    checkpoints[476].x=664;	checkpoints[476].z=1520;	checkpoints[477].x=668;	checkpoints[477].z=1520;	
    checkpoints[478].x=672;	checkpoints[478].z=1520;	checkpoints[479].x=676;	checkpoints[479].z=1519;	
    checkpoints[480].x=681;	checkpoints[480].z=1519;	checkpoints[481].x=684;	checkpoints[481].z=1518;	
    checkpoints[482].x=688;	checkpoints[482].z=1518;	checkpoints[483].x=692;	checkpoints[483].z=1518;	
    checkpoints[484].x=696;	checkpoints[484].z=1517;	checkpoints[485].x=700;	checkpoints[485].z=1516;	
    checkpoints[486].x=704;	checkpoints[486].z=1515;	checkpoints[487].x=708;	checkpoints[487].z=1513;	
    checkpoints[488].x=712;	checkpoints[488].z=1511;	checkpoints[489].x=716;	checkpoints[489].z=1509;	
    checkpoints[490].x=720;	checkpoints[490].z=1506;	checkpoints[491].x=724;	checkpoints[491].z=1503;	
    checkpoints[492].x=728;	checkpoints[492].z=1499;	checkpoints[493].x=732;	checkpoints[493].z=1496;	
    checkpoints[494].x=736;	checkpoints[494].z=1493;	checkpoints[495].x=740;	checkpoints[495].z=1489;	
    checkpoints[496].x=744;	checkpoints[496].z=1485;	checkpoints[497].x=748;	checkpoints[497].z=1480;	
    checkpoints[498].x=752;	checkpoints[498].z=1476;	checkpoints[499].x=755;	checkpoints[499].z=1472;	
    checkpoints[500].x=759;	checkpoints[500].z=1467;	checkpoints[501].x=763;	checkpoints[501].z=1462;	
    checkpoints[502].x=766;	checkpoints[502].z=1458;	checkpoints[503].x=769;	checkpoints[503].z=1453;	
    checkpoints[504].x=772;	checkpoints[504].z=1448;	checkpoints[505].x=773;	checkpoints[505].z=1443;	
    checkpoints[506].x=775;	checkpoints[506].z=1438;	checkpoints[507].x=776;	checkpoints[507].z=1433;	
    checkpoints[508].x=778;	checkpoints[508].z=1428;	checkpoints[509].x=779;	checkpoints[509].z=1423;	
    checkpoints[510].x=781;	checkpoints[510].z=1418;	checkpoints[511].x=782;	checkpoints[511].z=1413;	
    checkpoints[512].x=783;	checkpoints[512].z=1407;	checkpoints[513].x=783;	checkpoints[513].z=1403;	
    checkpoints[514].x=783;	checkpoints[514].z=1398;	checkpoints[515].x=783;	checkpoints[515].z=1393;	
    checkpoints[516].x=782;	checkpoints[516].z=1388;	checkpoints[517].x=782;	checkpoints[517].z=1383;	
    checkpoints[518].x=781;	checkpoints[518].z=1378;	checkpoints[519].x=780;	checkpoints[519].z=1373;	
    checkpoints[520].x=780;	checkpoints[520].z=1368;	checkpoints[521].x=779;	checkpoints[521].z=1363;	
    checkpoints[522].x=778;	checkpoints[522].z=1358;	checkpoints[523].x=776;	checkpoints[523].z=1352;	
    checkpoints[524].x=774;	checkpoints[524].z=1348;	checkpoints[525].x=772;	checkpoints[525].z=1343;	
    checkpoints[526].x=770;	checkpoints[526].z=1338;	checkpoints[527].x=768;	checkpoints[527].z=1333;	
    checkpoints[528].x=766;	checkpoints[528].z=1328;	checkpoints[529].x=763;	checkpoints[529].z=1322;	
    checkpoints[530].x=761;	checkpoints[530].z=1318;	checkpoints[531].x=757;	checkpoints[531].z=1313;	
    checkpoints[532].x=753;	checkpoints[532].z=1308;	checkpoints[533].x=748;	checkpoints[533].z=1303;	
    checkpoints[534].x=744;	checkpoints[534].z=1300;	checkpoints[535].x=739;	checkpoints[535].z=1296;	
    checkpoints[536].x=734;	checkpoints[536].z=1293;	checkpoints[537].x=729;	checkpoints[537].z=1291;	
    checkpoints[538].x=724;	checkpoints[538].z=1288;	checkpoints[539].x=719;	checkpoints[539].z=1285;	
    checkpoints[540].x=714;	checkpoints[540].z=1283;	checkpoints[541].x=709;	checkpoints[541].z=1280;	
    checkpoints[542].x=704;	checkpoints[542].z=1278;	checkpoints[543].x=699;	checkpoints[543].z=1276;	
    checkpoints[544].x=694;	checkpoints[544].z=1275;	checkpoints[545].x=689;	checkpoints[545].z=1273;	
    checkpoints[546].x=684;	checkpoints[546].z=1271;	checkpoints[547].x=679;	checkpoints[547].z=1270;	
    checkpoints[548].x=674;	checkpoints[548].z=1268;	checkpoints[549].x=669;	checkpoints[549].z=1265;	
    checkpoints[550].x=664;	checkpoints[550].z=1262;	checkpoints[551].x=659;	checkpoints[551].z=1259;	
    checkpoints[552].x=654;	checkpoints[552].z=1254;	checkpoints[553].x=649;	checkpoints[553].z=1249;	
    checkpoints[554].x=645;	checkpoints[554].z=1244;	checkpoints[555].x=641;	checkpoints[555].z=1239;	
    checkpoints[556].x=638;	checkpoints[556].z=1234;	checkpoints[557].x=634;	checkpoints[557].z=1229;	
    checkpoints[558].x=632;	checkpoints[558].z=1224;	checkpoints[559].x=630;	checkpoints[559].z=1219;	
    checkpoints[560].x=628;	checkpoints[560].z=1213;	checkpoints[561].x=627;	checkpoints[561].z=1209;	
    checkpoints[562].x=626;	checkpoints[562].z=1204;	checkpoints[563].x=625;	checkpoints[563].z=1199;	
    checkpoints[564].x=624;	checkpoints[564].z=1194;	checkpoints[565].x=624;	checkpoints[565].z=1188;	
    checkpoints[566].x=625;	checkpoints[566].z=1183;	checkpoints[567].x=625;	checkpoints[567].z=1178;	
    checkpoints[568].x=626;	checkpoints[568].z=1174;	checkpoints[569].x=627;	checkpoints[569].z=1169;	
    checkpoints[570].x=629;	checkpoints[570].z=1163;	checkpoints[571].x=631;	checkpoints[571].z=1159;	
    checkpoints[572].x=634;	checkpoints[572].z=1153;	checkpoints[573].x=636;	checkpoints[573].z=1149;	
    checkpoints[574].x=640;	checkpoints[574].z=1144;	checkpoints[575].x=643;	checkpoints[575].z=1139;	
    checkpoints[576].x=647;	checkpoints[576].z=1135;	checkpoints[577].x=651;	checkpoints[577].z=1131;	
    checkpoints[578].x=655;	checkpoints[578].z=1128;	checkpoints[579].x=659;	checkpoints[579].z=1125;	
    checkpoints[580].x=663;	checkpoints[580].z=1123;	checkpoints[581].x=667;	checkpoints[581].z=1121;	
    checkpoints[582].x=671;	checkpoints[582].z=1119;	checkpoints[583].x=675;	checkpoints[583].z=1118;	
    checkpoints[584].x=679;	checkpoints[584].z=1117;	checkpoints[585].x=683;	checkpoints[585].z=1116;	
    checkpoints[586].x=687;	checkpoints[586].z=1116;	checkpoints[587].x=692;	checkpoints[587].z=1116;	
    checkpoints[588].x=695;	checkpoints[588].z=1116;	checkpoints[589].x=699;	checkpoints[589].z=1116;	
    checkpoints[590].x=703;	checkpoints[590].z=1117;	checkpoints[591].x=707;	checkpoints[591].z=1117;	
    checkpoints[592].x=711;	checkpoints[592].z=1118;	checkpoints[593].x=715;	checkpoints[593].z=1119;	
    checkpoints[594].x=719;	checkpoints[594].z=1119;	checkpoints[595].x=723;	checkpoints[595].z=1120;	
    checkpoints[596].x=727;	checkpoints[596].z=1120;	checkpoints[597].x=731;	checkpoints[597].z=1121;	
    checkpoints[598].x=736;	checkpoints[598].z=1121;	checkpoints[599].x=739;	checkpoints[599].z=1120;	
    checkpoints[600].x=743;	checkpoints[600].z=1120;	checkpoints[601].x=747;	checkpoints[601].z=1120;	
    checkpoints[602].x=752;	checkpoints[602].z=1119;	checkpoints[603].x=755;	checkpoints[603].z=1119;	
    checkpoints[604].x=759;	checkpoints[604].z=1119;	checkpoints[605].x=763;	checkpoints[605].z=1118;	
    checkpoints[606].x=767;	checkpoints[606].z=1117;	checkpoints[607].x=771;	checkpoints[607].z=1115;	
    checkpoints[608].x=776;	checkpoints[608].z=1114;	checkpoints[609].x=779;	checkpoints[609].z=1112;	
    checkpoints[610].x=784;	checkpoints[610].z=1110;	checkpoints[611].x=787;	checkpoints[611].z=1108;	
    checkpoints[612].x=791;	checkpoints[612].z=1106;	checkpoints[613].x=795;	checkpoints[613].z=1104;	
    checkpoints[614].x=799;	checkpoints[614].z=1102;	checkpoints[615].x=803;	checkpoints[615].z=1100;	
    checkpoints[616].x=807;	checkpoints[616].z=1098;	checkpoints[617].x=811;	checkpoints[617].z=1096;	
    checkpoints[618].x=815;	checkpoints[618].z=1093;	checkpoints[619].x=819;	checkpoints[619].z=1090;	
    checkpoints[620].x=823;	checkpoints[620].z=1086;	checkpoints[621].x=827;	checkpoints[621].z=1082;	
    checkpoints[622].x=831;	checkpoints[622].z=1079;	checkpoints[623].x=835;	checkpoints[623].z=1075;	
    checkpoints[624].x=839;	checkpoints[624].z=1071;	checkpoints[625].x=843;	checkpoints[625].z=1067;	
    checkpoints[626].x=846;	checkpoints[626].z=1061;	checkpoints[627].x=848;	checkpoints[627].z=1056;	
    checkpoints[628].x=850;	checkpoints[628].z=1052;	checkpoints[629].x=852;	checkpoints[629].z=1047;	
    checkpoints[630].x=853;	checkpoints[630].z=1042;	checkpoints[631].x=853;	checkpoints[631].z=1037;	
    checkpoints[632].x=854;	checkpoints[632].z=1032;	checkpoints[633].x=855;	checkpoints[633].z=1027;	
    checkpoints[634].x=855;	checkpoints[634].z=1022;	checkpoints[635].x=856;	checkpoints[635].z=1017;	
    checkpoints[636].x=857;	checkpoints[636].z=1012;	checkpoints[637].x=857;	checkpoints[637].z=1007;	
    checkpoints[638].x=858;	checkpoints[638].z=1002;	checkpoints[639].x=858;	checkpoints[639].z=997;	
    checkpoints[640].x=857;	checkpoints[640].z=992;	checkpoints[641].x=856;	checkpoints[641].z=987;	
    checkpoints[642].x=854;	checkpoints[642].z=982;	checkpoints[643].x=852;	checkpoints[643].z=977;	
    checkpoints[644].x=850;	checkpoints[644].z=972;	checkpoints[645].x=848;	checkpoints[645].z=967;	
    checkpoints[646].x=845;	checkpoints[646].z=962;	checkpoints[647].x=843;	checkpoints[647].z=957;	
    checkpoints[648].x=840;	checkpoints[648].z=952;	checkpoints[649].x=838;	checkpoints[649].z=947;	
    checkpoints[650].x=836;	checkpoints[650].z=942;	checkpoints[651].x=833;	checkpoints[651].z=937;	
    checkpoints[652].x=831;	checkpoints[652].z=932;	checkpoints[653].x=828;	checkpoints[653].z=927;	
    checkpoints[654].x=826;	checkpoints[654].z=921;	checkpoints[655].x=824;	checkpoints[655].z=917;	
    checkpoints[656].x=821;	checkpoints[656].z=912;	checkpoints[657].x=819;	checkpoints[657].z=907;	
    checkpoints[658].x=816;	checkpoints[658].z=902;	checkpoints[659].x=814;	checkpoints[659].z=897;	
    checkpoints[660].x=812;	checkpoints[660].z=891;	checkpoints[661].x=811;	checkpoints[661].z=887;	
    checkpoints[662].x=810;	checkpoints[662].z=882;	checkpoints[663].x=810;	checkpoints[663].z=877;	
    checkpoints[664].x=810;	checkpoints[664].z=871;	checkpoints[665].x=810;	checkpoints[665].z=866;	
    checkpoints[666].x=811;	checkpoints[666].z=861;	checkpoints[667].x=812;	checkpoints[667].z=856;	
    checkpoints[668].x=813;	checkpoints[668].z=851;	checkpoints[669].x=815;	checkpoints[669].z=847;	
    checkpoints[670].x=817;	checkpoints[670].z=842;	checkpoints[671].x=820;	checkpoints[671].z=837;	
    checkpoints[672].x=824;	checkpoints[672].z=832;	checkpoints[673].x=827;	checkpoints[673].z=827;	
    checkpoints[674].x=831;	checkpoints[674].z=823;	checkpoints[675].x=835;	checkpoints[675].z=819;	
    checkpoints[676].x=839;	checkpoints[676].z=816;	checkpoints[677].x=843;	checkpoints[677].z=814;	
    checkpoints[678].x=847;	checkpoints[678].z=810;	checkpoints[679].x=851;	checkpoints[679].z=808;	
    checkpoints[680].x=855;	checkpoints[680].z=805;	checkpoints[681].x=859;	checkpoints[681].z=802;	
    checkpoints[682].x=863;	checkpoints[682].z=799;	checkpoints[683].x=867;	checkpoints[683].z=795;	
    checkpoints[684].x=871;	checkpoints[684].z=793;	checkpoints[685].x=875;	checkpoints[685].z=790;	
    checkpoints[686].x=880;	checkpoints[686].z=788;	checkpoints[687].x=883;	checkpoints[687].z=787;	
    checkpoints[688].x=887;	checkpoints[688].z=785;	checkpoints[689].x=891;	checkpoints[689].z=783;	
    checkpoints[690].x=895;	checkpoints[690].z=781;	checkpoints[691].x=899;	checkpoints[691].z=780;	
    checkpoints[692].x=903;	checkpoints[692].z=778;	checkpoints[693].x=907;	checkpoints[693].z=776;	
    checkpoints[694].x=911;	checkpoints[694].z=774;	checkpoints[695].x=915;	checkpoints[695].z=772;	
    checkpoints[696].x=919;	checkpoints[696].z=770;	checkpoints[697].x=923;	checkpoints[697].z=768;	
    checkpoints[698].x=927;	checkpoints[698].z=765;	checkpoints[699].x=931;	checkpoints[699].z=762;	
    checkpoints[700].x=935;	checkpoints[700].z=759;	checkpoints[701].x=939;	checkpoints[701].z=756;	
    checkpoints[702].x=943;	checkpoints[702].z=753;	checkpoints[703].x=947;	checkpoints[703].z=750;	
    checkpoints[704].x=951;	checkpoints[704].z=746;	checkpoints[705].x=955;	checkpoints[705].z=743;	
    checkpoints[706].x=959;	checkpoints[706].z=740;	checkpoints[707].x=963;	checkpoints[707].z=737;	
    checkpoints[708].x=967;	checkpoints[708].z=734;	checkpoints[709].x=971;	checkpoints[709].z=730;	
    checkpoints[710].x=975;	checkpoints[710].z=726;	checkpoints[711].x=979;	checkpoints[711].z=723;	
    checkpoints[712].x=983;	checkpoints[712].z=719;	checkpoints[713].x=987;	checkpoints[713].z=715;	
    checkpoints[714].x=991;	checkpoints[714].z=711;	checkpoints[715].x=995;	checkpoints[715].z=707;	
    checkpoints[716].x=999;	checkpoints[716].z=702;	checkpoints[717].x=1003;	checkpoints[717].z=698;	
    checkpoints[718].x=1006;	checkpoints[718].z=693;	checkpoints[719].x=1010;	checkpoints[719].z=689;	
    checkpoints[720].x=1013;	checkpoints[720].z=684;	checkpoints[721].x=1016;	checkpoints[721].z=679;	
    checkpoints[722].x=1018;	checkpoints[722].z=675;	checkpoints[723].x=1020;	checkpoints[723].z=670;	
    checkpoints[724].x=1021;	checkpoints[724].z=665;	checkpoints[725].x=1022;	checkpoints[725].z=660;	
    checkpoints[726].x=1023;	checkpoints[726].z=655;	checkpoints[727].x=1024;	checkpoints[727].z=650;	
    checkpoints[728].x=1025;	checkpoints[728].z=645;	checkpoints[729].x=1026;	checkpoints[729].z=640;	
    checkpoints[730].x=1027;	checkpoints[730].z=635;	checkpoints[731].x=1028;	checkpoints[731].z=630;	
    checkpoints[732].x=1029;	checkpoints[732].z=625;	checkpoints[733].x=1029;	checkpoints[733].z=620;	
    checkpoints[734].x=1029;	checkpoints[734].z=615;	checkpoints[735].x=1030;	checkpoints[735].z=609;	
    checkpoints[736].x=1030;	checkpoints[736].z=605;	checkpoints[737].x=1031;	checkpoints[737].z=600;	
    checkpoints[738].x=1031;	checkpoints[738].z=595;	checkpoints[739].x=1031;	checkpoints[739].z=590;	
    checkpoints[740].x=1032;	checkpoints[740].z=585;	checkpoints[741].x=1032;	checkpoints[741].z=580;	
    checkpoints[742].x=1032;	checkpoints[742].z=575;	checkpoints[743].x=1033;	checkpoints[743].z=570;	
    checkpoints[744].x=1033;	checkpoints[744].z=564;	checkpoints[745].x=1033;	checkpoints[745].z=560;	
    checkpoints[746].x=1034;	checkpoints[746].z=554;	checkpoints[747].x=1034;	checkpoints[747].z=550;	
    checkpoints[748].x=1035;	checkpoints[748].z=545;	checkpoints[749].x=1035;	checkpoints[749].z=540;	
    checkpoints[750].x=1035;	checkpoints[750].z=535;	checkpoints[751].x=1036;	checkpoints[751].z=530;	
    checkpoints[752].x=1036;	checkpoints[752].z=525;	checkpoints[753].x=1036;	checkpoints[753].z=520;	
    checkpoints[754].x=1037;	checkpoints[754].z=515;	checkpoints[755].x=1037;	checkpoints[755].z=510;	
    checkpoints[756].x=1038;	checkpoints[756].z=505;	checkpoints[757].x=1038;	checkpoints[757].z=500;	
    checkpoints[758].x=1038;	checkpoints[758].z=495;	checkpoints[759].x=1039;	checkpoints[759].z=490;	
    checkpoints[760].x=1039;	checkpoints[760].z=485;	checkpoints[761].x=1039;	checkpoints[761].z=480;	
    checkpoints[762].x=1040;	checkpoints[762].z=475;	checkpoints[763].x=1040;	checkpoints[763].z=470;	
    checkpoints[764].x=1040;	checkpoints[764].z=465;	checkpoints[765].x=1041;	checkpoints[765].z=460;	
    checkpoints[766].x=1041;	checkpoints[766].z=455;	checkpoints[767].x=1042;	checkpoints[767].z=450;	
    checkpoints[768].x=1042;	checkpoints[768].z=445;	checkpoints[769].x=1042;	checkpoints[769].z=440;	
    checkpoints[770].x=1042;	checkpoints[770].z=435;	checkpoints[771].x=1041;	checkpoints[771].z=430;	
    checkpoints[772].x=1040;	checkpoints[772].z=425;	checkpoints[773].x=1039;	checkpoints[773].z=420;	
    checkpoints[774].x=1038;	checkpoints[774].z=415;	checkpoints[775].x=1037;	checkpoints[775].z=410;	
    checkpoints[776].x=1036;	checkpoints[776].z=405;	checkpoints[777].x=1034;	checkpoints[777].z=400;	
    checkpoints[778].x=1032;	checkpoints[778].z=395;	checkpoints[779].x=1030;	checkpoints[779].z=390;	
    checkpoints[780].x=1027;	checkpoints[780].z=385;	checkpoints[781].x=1024;	checkpoints[781].z=380;	
    checkpoints[782].x=1021;	checkpoints[782].z=375;	checkpoints[783].x=1019;	checkpoints[783].z=370;	
    checkpoints[784].x=1016;	checkpoints[784].z=365;	checkpoints[785].x=1013;	checkpoints[785].z=360;	
    checkpoints[786].x=1011;	checkpoints[786].z=355;	checkpoints[787].x=1008;	checkpoints[787].z=350;	
    checkpoints[788].x=1005;	checkpoints[788].z=345;	checkpoints[789].x=1003;	checkpoints[789].z=340;	
    checkpoints[790].x=1000;	checkpoints[790].z=335;	checkpoints[791].x=997;	checkpoints[791].z=330;	
    checkpoints[792].x=995;	checkpoints[792].z=325;	checkpoints[793].x=992;	checkpoints[793].z=320;	
    checkpoints[794].x=989;	checkpoints[794].z=315;	checkpoints[795].x=987;	checkpoints[795].z=310;	
    checkpoints[796].x=984;	checkpoints[796].z=305;	checkpoints[797].x=981;	checkpoints[797].z=300;	
    checkpoints[798].x=979;	checkpoints[798].z=295;	checkpoints[799].x=976;	checkpoints[799].z=290;	
    checkpoints[800].x=973;	checkpoints[800].z=285;	checkpoints[801].x=970;	checkpoints[801].z=280;	
    checkpoints[802].x=968;	checkpoints[802].z=275;	checkpoints[803].x=965;	checkpoints[803].z=270;	
    checkpoints[804].x=963;	checkpoints[804].z=265;	checkpoints[805].x=960;	checkpoints[805].z=260;	
    checkpoints[806].x=957;	checkpoints[806].z=255;	checkpoints[807].x=954;	checkpoints[807].z=250;	
    checkpoints[808].x=952;	checkpoints[808].z=245;	checkpoints[809].x=949;	checkpoints[809].z=240;	
    checkpoints[810].x=946;	checkpoints[810].z=235;	checkpoints[811].x=944;	checkpoints[811].z=230;	
    checkpoints[812].x=941;	checkpoints[812].z=225;	checkpoints[813].x=938;	checkpoints[813].z=220;	
    checkpoints[814].x=936;	checkpoints[814].z=215;	checkpoints[815].x=933;	checkpoints[815].z=210;	
    checkpoints[816].x=930;	checkpoints[816].z=205;	checkpoints[817].x=925;	checkpoints[817].z=200;	
    checkpoints[818].x=921;	checkpoints[818].z=196;	checkpoints[819].x=916;	checkpoints[819].z=192;	
    checkpoints[820].x=911;	checkpoints[820].z=189;	checkpoints[821].x=906;	checkpoints[821].z=185;	
    checkpoints[822].x=901;	checkpoints[822].z=181;	checkpoints[823].x=896;	checkpoints[823].z=178;	
    checkpoints[824].x=891;	checkpoints[824].z=174;	checkpoints[825].x=886;	checkpoints[825].z=171;	
    checkpoints[826].x=881;	checkpoints[826].z=167;	checkpoints[827].x=876;	checkpoints[827].z=163;	
    checkpoints[828].x=871;	checkpoints[828].z=159;	checkpoints[829].x=866;	checkpoints[829].z=156;	
    checkpoints[830].x=861;	checkpoints[830].z=153;	checkpoints[831].x=856;	checkpoints[831].z=150;	
    checkpoints[832].x=851;	checkpoints[832].z=148;	checkpoints[833].x=846;	checkpoints[833].z=145;	
    checkpoints[834].x=841;	checkpoints[834].z=143;	checkpoints[835].x=836;	checkpoints[835].z=142;	
    checkpoints[836].x=831;	checkpoints[836].z=141;	checkpoints[837].x=826;	checkpoints[837].z=140;	
    checkpoints[838].x=821;	checkpoints[838].z=139;	checkpoints[839].x=816;	checkpoints[839].z=138;	
    checkpoints[840].x=811;	checkpoints[840].z=136;	checkpoints[841].x=806;	checkpoints[841].z=135;	
    checkpoints[842].x=801;	checkpoints[842].z=134;	checkpoints[843].x=796;	checkpoints[843].z=133;	
    checkpoints[844].x=791;	checkpoints[844].z=132;	checkpoints[845].x=786;	checkpoints[845].z=131;	
    checkpoints[846].x=781;	checkpoints[846].z=130;	checkpoints[847].x=776;	checkpoints[847].z=129;	
    checkpoints[848].x=771;	checkpoints[848].z=127;	checkpoints[849].x=766;	checkpoints[849].z=127;	
    checkpoints[850].x=761;	checkpoints[850].z=126;	checkpoints[851].x=756;	checkpoints[851].z=126;	
    checkpoints[852].x=751;	checkpoints[852].z=126;	checkpoints[853].x=746;	checkpoints[853].z=126;	
    checkpoints[854].x=741;	checkpoints[854].z=126;	checkpoints[855].x=736;	checkpoints[855].z=126;	
    checkpoints[856].x=731;	checkpoints[856].z=126;	checkpoints[857].x=726;	checkpoints[857].z=125;	
    checkpoints[858].x=721;	checkpoints[858].z=123;	checkpoints[859].x=716;	checkpoints[859].z=121;	
    checkpoints[860].x=711;	checkpoints[860].z=118;	checkpoints[861].x=706;	checkpoints[861].z=115;	
    checkpoints[862].x=701;	checkpoints[862].z=112;	checkpoints[863].x=696;	checkpoints[863].z=109;	
    checkpoints[864].x=691;	checkpoints[864].z=107;	checkpoints[865].x=686;	checkpoints[865].z=104;	
    checkpoints[866].x=681;	checkpoints[866].z=101;	checkpoints[867].x=676;	checkpoints[867].z=100;	
    checkpoints[868].x=671;	checkpoints[868].z=99;	checkpoints[869].x=666;	checkpoints[869].z=99;	
    checkpoints[870].x=661;	checkpoints[870].z=99;	checkpoints[871].x=656;	checkpoints[871].z=101;	
    checkpoints[872].x=651;	checkpoints[872].z=103;	checkpoints[873].x=646;	checkpoints[873].z=106;	
    checkpoints[874].x=641;	checkpoints[874].z=109;	checkpoints[875].x=637;	checkpoints[875].z=113;	
    checkpoints[876].x=634;	checkpoints[876].z=117;	checkpoints[877].x=631;	checkpoints[877].z=121;	
    checkpoints[878].x=629;	checkpoints[878].z=125;	checkpoints[879].x=628;	checkpoints[879].z=129;	
    checkpoints[880].x=626;	checkpoints[880].z=133;	checkpoints[881].x=626;	checkpoints[881].z=137;	
    checkpoints[882].x=625;	checkpoints[882].z=141;	checkpoints[883].x=625;	checkpoints[883].z=145;	
    checkpoints[884].x=625;	checkpoints[884].z=149;	checkpoints[885].x=626;	checkpoints[885].z=153;	
    checkpoints[886].x=627;	checkpoints[886].z=157;	checkpoints[887].x=628;	checkpoints[887].z=161;	
    checkpoints[888].x=629;	checkpoints[888].z=165;	checkpoints[889].x=631;	checkpoints[889].z=169;	
    checkpoints[890].x=633;	checkpoints[890].z=173;	checkpoints[891].x=635;	checkpoints[891].z=177;	
    checkpoints[892].x=638;	checkpoints[892].z=181;	checkpoints[893].x=641;	checkpoints[893].z=185;
}


RoadMap::RoadMap(CTerrain * t, int car_id){
	setCheckp();
    checkpidx = 0;
    terrain = t;
    bola = NULL;
    owner = car_id;
}

CVector RoadMap::checkpPosition(){
    return CVector(checkpoints[checkpidx].x, 0.0, checkpoints[checkpidx].z);
}

float RoadMap::distance(CVector a, CVector b){

    float dist;
    dist = sqrt(((a.x-b.x)*(a.x-b.x)) + ((a.z-b.z)*(a.z-b.z)));

    return dist;
}

checkp RoadMap::nextCheckp(bool mostrar){
	if(checkpidx >= ncheckps)
        checkpidx = 0;
        
 //   printf("Voy a por %d (%.0f, %.0f)\n", checkpidx, checkpoints[checkpidx].x, checkpoints[checkpidx].z);

    if(bola==NULL){
		bola = new CEntity();
	    bola->tipo = t_CHECKPOINT;
	    bola->size = 12;
        bola->owner = owner;
        if (owner == 0)
            bola->Load("models/coche/weapon.md2", "models/coche/weapon.PCX");
	    bola->AttachTo(terrain);
    }

    int offx, offz;
    offx = rand()%10;
    offz = rand()%10;
    bola->position = CVector(checkpoints[checkpidx].x+offx, 0.0, checkpoints[checkpidx].z+offz);

	return checkpoints[checkpidx++];
}